#include "MainWindow.h"

#include <QApplication>
#include <QTextCodec>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    qSetMessagePattern("%{if-category}%{category}: %{endif}%{message} %{file}:%{line}");

    // 设置字符编码为UTF-8
    MainWindow w;
    w.show();
    return a.exec();
}
